package com.example.employ.controller;

/**
 * @author LYT0905
 * @date 2024/05/23/16:52
 */

import com.example.employ.common.convention.result.Result;
import com.example.employ.common.convention.result.Results;
import com.example.employ.dto.response.BoardDetailRespDTO;
import com.example.employ.dto.response.BoardListRespDTO;
import com.example.employ.service.BoardService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 公告栏
 */
@RestController
@RequiredArgsConstructor
public class BoardController {

    private final BoardService boardService;

    /**
     * 查看公告列表
     */
    @GetMapping("/api/recruit/v1/board/list")
    public Result<List<BoardListRespDTO>> boardList(){

        return Results.success(boardService.boardList());
    }
}
